package com.coda.service;

import com.coda.adminVo.agreement.AgreementQueryVo;
import com.coda.adminVo.agreement.AgreementVo;
import com.coda.entity.LeaseAgreement;
import com.coda.result.PageResult;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface LeaseAgreementService {
    /**
     * 根据条件分页查询租约列表
     * @return
     */
    PageResult getPageList(@RequestParam Integer current, @RequestParam Integer size, AgreementQueryVo queryVo);
    /**
     * 根据id查询租约信息
     * @param id
     * @return
     */
    AgreementVo getById(Long id);

    /**
     * 保存或更新租约信息
     * @param leaseAgreement
     */
    void saveOrUpdate(LeaseAgreement leaseAgreement);

    /**
     * 根据ID删除租约信息
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据ID更新租约状态
     * @param id
     */
    void updateStatusById(Long id,Integer status);
}
